/* Galaxy Hub — shared pagination (storefront + admin) */

.gh-pagination,
.dash-pagination {
  --pager-primary: #266ab4;
  --pager-primary-dark: #1a4f8a;
  --pager-border: #e5e7eb;
  --pager-muted: #6b7280;
  --pager-text: #111827;
  --pager-size: 38px;
}

.dash-pagination {
  padding: 1rem 1.35rem;
  border-top: 1px solid #f3f4f6;
  background: #fff;
}

.gh-pagination {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pager-border);
}

.gh-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.gh-pager__meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--pager-muted);
  line-height: 1.4;
}

.gh-pager__meta strong {
  color: var(--pager-text);
  font-weight: 600;
}

/* Controls row: prev | pages | next */
.gh-pager__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  height: 44px;
}

.gh-pager__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1.5px solid var(--pager-border);
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gh-pager__nav i {
  display: block;
  line-height: 1;
  font-size: 1rem;
}

.gh-pager__nav:hover {
  background: #f0f7ff;
  border-color: #93c5fd;
  color: var(--pager-primary);
}

.gh-pager__nav--disabled {
  background: #f9fafb;
  border-color: #f3f4f6;
  color: #cbd5e1;
  cursor: not-allowed;
  pointer-events: none;
}

.gh-pager__pages {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  height: 44px;
  box-sizing: border-box;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
}

.gh-pager__page a,
.gh-pager__page span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--pager-size);
  height: var(--pager-size);
  padding: 0 0.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.gh-pager__page a:hover {
  background: #fff;
  color: var(--pager-primary);
}

.gh-pager__page.is-active span {
  background: var(--pager-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(38, 106, 180, 0.2);
}

.gh-pager__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: var(--pager-size);
  color: #9ca3af;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  user-select: none;
}

@media (max-width: 767px) {
  .gh-pager {
    flex-direction: column;
    align-items: stretch;
  }

  .gh-pager__meta {
    text-align: center;
  }

  .gh-pager__controls {
    justify-content: center;
    width: 100%;
  }

  .gh-pager__pages {
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
    max-width: calc(100% - 90px);
  }
}

@media (max-width: 400px) {
  .gh-pagination,
  .dash-pagination {
    --pager-size: 36px;
  }

  .gh-pager__pages {
    gap: 0.15rem;
    padding: 0.15rem;
  }

  .gh-pager__page a,
  .gh-pager__page span {
    min-width: 34px;
    padding: 0 0.35rem;
    font-size: 0.825rem;
  }
}
